package com.zj.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;
import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("user_red_packet")
public class UserRedPacket implements Serializable {
    @TableId(value = "packetId")
    private Long packetId;//"主键"
    @TableField(value = "userId")
    private Long userId;//"用户ID"
    @TableField(value = "activityId")
    private Long activityId;//"活动ID"
    @TableField(value = "amount")
    private Double amount;//"抢到的金额"
    @TableField(value = "receivedAt")
    private Date receivedAt;//"领取时间"
}
